33. Notebook + Quiz: Impact of Sample Size

Workspace

This section contains either a workspace (it can be a Jupyter Notebook workspace or an online code editor work space, etc.) and it cannot be automatically downloaded to be generated here. Please access the classroom with your account and manually download the workspace to your local machine. Note that for some courses, Udacity upload the workspace files onto https://github.com/udacity , so you may be able to download them there.

Workspace Information:

  • Default file path:
  • Workspace type: jupyter
  • Opened files (when workspace is loaded): n/a

QUIZ QUESTION: :

Use the first statement in the notebook above to set up the null and alternative hypotheses.

ANSWER CHOICES:



Hypotheses

Statement

The mean height of everyone in the population is equal to 67.60 inches.

The mean height of everyone in the sample is equal to 67.60 inches.

The mean height of everyone in the sample is not equal to 67.60 inches.

The mean height of everyone in the population is equal to 0 inches.

The mean height of everyone in the population is different from 67.60 inches.

SOLUTION:

Hypotheses

Statement

The mean height of everyone in the population is equal to 67.60 inches.

The mean height of everyone in the population is different from 67.60 inches.

QUIZ QUESTION: :

Use the information from question 2 in the notebook to match each description to the correct value.

ANSWER CHOICES:



Description

Value

doesn't look normally distributed

67.88

looks normally distributed

1.4

2.84

3.12

67.60

SOLUTION:

Description

Value

67.88

looks normally distributed

1.4

3.12

67.60

The p-value that you obtain using the null from part 1 and the sample mean and sampling distribution standard deviation for a sample mean of size 5 from part 2 is:

SOLUTION: Greater than 0.50

Based on the p-value retrieved using the sample of size 5 and any reasonable type I error rate (say 5%),

SOLUTION: We do not have statistically significant evidence to suggest the population mean is different from 67.60 inches. (Fail to reject the null)

QUIZ QUESTION: :

Use your new sampling distribution to match each of the following values to the corresponding statement.

ANSWER CHOICES:



Description

Value

Reject the null - we have evidence the population mean isn't 67.60 inches.

0.0

No change.

No change.

0.18

Fail to reject the null - we do not have evidence the population mean is different from 67.60 inches.

(population standard deviation)/sqrt(5)

SOLUTION:

Description

Value

Reject the null - we have evidence the population mean isn't 67.60 inches.

0.0

No change.

No change.

0.18

In this concept the big takeaway is:

SOLUTION: Even the smallest of differences between a sample mean and a hypothesized population mean are significant when we have large sample sizes.